<?php

namespace app\common\model;

use think\Model;

class TopUserModel extends Model
{
    protected $connection = 'db_live';
    protected $autoWriteTimestamp = 'datetime';
    protected $createTime = 'updated_at';
    protected $updateTime = 'updated_at';

    public function user()
    {
        return $this->hasOne(UserModel::class, 'id', 'uid');
    }
}
